package com.example.blogindex.web;

import com.example.blogindex.web.Fengin.OtherFengin;
import com.xpd.blog.bean.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("evaluate")
public class EvaluateController {
    @Autowired
    OtherFengin otherFengin;
    @RequestMapping("addEvaluate")
    public Result addEvaluate(@RequestParam int usid, @RequestParam int aid,@RequestParam int status){
        Result result = otherFengin.addEvaluate(usid, aid,status);
        return result;
    }
    @RequestMapping("delEvaluate")
    public Result delEvaluate(@RequestParam int usid, @RequestParam int aid,@RequestParam int status){
        Result result = otherFengin.delEvaluate(usid, aid,status);
        return result;
    }
    @RequestMapping("selectEvaluate")
    public Result selectEvaluate(@RequestParam int usid, @RequestParam int aid){
        Result result = otherFengin.selectEvaluate(usid, aid);
        return result;
    }
}
